package com.example.whm.model;

import java.io.Serializable;
import java.util.Date;

public class Comment implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	String id;
	String linkid;
	String linkname;
	String userid;
	String detail;
	int like_num=0;
	int state=0; //0-normal ,1=replay  
	int type; //0 web //1 android //2 iphone //......
	String avator;
	String username;
	String createtime=new Date().toLocaleString();
	
	
	
	
	
	
	
	
	
	
	
	public int getState() {
		return state;
	}






	public void setState(int state) {
		this.state = state;
	}






	public String getLinkname() {
		return linkname;
	}






	public void setLinkname(String linkname) {
		this.linkname = linkname;
	}






	public String getId() {
		return id;
	}






	public void setId(String id) {
		this.id = id;
	}






	public String getLinkid() {
		return linkid;
	}






	public void setLinkid(String linkid) {
		this.linkid = linkid;
	}






	public String getUserid() {
		return userid;
	}






	public void setUserid(String userid) {
		this.userid = userid;
	}






	public String getDetail() {
		return detail;
	}






	public void setDetail(String detail) {
		this.detail = detail;
	}






	public int getLike_num() {
		return like_num;
	}






	public void setLike_num(int like_num) {
		this.like_num = like_num;
	}






	public String getAvator() {
		return avator;
	}






	public void setAvator(String avator) {
		this.avator = avator;
	}






	public String getUsername() {
		return username;
	}






	public void setUsername(String username) {
		this.username = username;
	}






	public String getCreatetime() {
		return createtime;
	}






	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}






	public Comment(String linkid, String userid, String detail,
			String avator, String username) {
		super();
		
		this.linkid = linkid;
		this.userid = userid;
		this.detail = detail;
		this.avator = avator;
		this.username = username;
	}






	public Comment() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}